package com.example.ref.controller;

import com.example.starter.service.AnimalService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zcs
 * @since 2023/3/23
 */
@RestController
@RequestMapping("/test")
public class TestController {

    private final AnimalService animalService;

    public TestController(AnimalService animalService) {
        this.animalService = animalService;
    }

    @GetMapping("/call")
    public String call(){
        return animalService.say();
    }
}
